home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
LIBRARY
/
TSPA3460
/
TSUNTBOT.TST
< prev
next >
Wrap
Text File
|
1994-08-16
|
1KB
|
68 lines
{$M 16384,0,655360}
(* This is a test program for the TSUNTBOT.TPU unit
Updated 26-Jul-93
*)
uses Dos,
TSUNTM, (* TSUNTBOT.TPU does not need TSUNTM, just TSUNTBOT.TST *)
TSUNTBOT;
procedure LOGO;
begin
writeln;
writeln ('TSUNTBOT unit test by Prof. Timo Salmi');
writeln ('University of Vaasa, Finland, ts@uwasa.fi');
{$IFDEF VER40}
writeln ('TP version 4.0');
{$ENDIF}
{$IFDEF VER50}
writeln ('TP version 5.0');
{$ENDIF}
{$IFDEF VER55}
writeln ('TP version 5.5');
{$ENDIF}
{$IFDEF VER60}
writeln ('TP version 6.0');
{$ENDIF}
{$IFDEF VER70}
writeln ('TP version 7.0');
{$ENDIF}
writeln;
end;
(* Try warm reboot *)
procedure TEST1;
var ch : char;
begin
write ('Press Y if you really want to test a warm reboot, any other key to cancel ');
repeat
if KEYPREFN then
begin
ch := READKEFN;
case ch of
#3 : exit;
#27 : exit;
#0 : begin
if KEYPREFN then
begin
ch := READKEFN;
exit;
end;
end;
'Y', 'y' : REBOOT(true);
#0..#255 : exit;
else ;
end; {case}
end; {if}
until false;
end; (* test1 *)
(* Main program *)
begin
LOGO;
TEST1;
{}
write ('Press <-'' '); readln;
end. (* tsuntbot.tst *)